//
//  ZWLScanView.h
//  ZWLScanView
//
//  Created by lwz on 2018/5/21.
//

#import <UIKit/UIKit.h>
#import <AVFoundation/AVFoundation.h>

@class ZWLScanView;
@protocol ZWLScanViewDelegate <NSObject>

@required
- (void)scanView:(ZWLScanView *)scanView DidCaptureDataStr:(NSString *) dataStr;
- (void)scanViewDidBeginScan;
- (void)scanViewDidEndScan;

@end

@interface ZWLScanView : UIView

- (void)setupWithDelegate:(id<ZWLScanViewDelegate>) delegate;
- (void)beginScan;
- (void)endScan;

@end
